package com.tangyee.home_exercise_diet.beans;

import java.util.UUID;

public class FoodOrExercise {

    private String date; // 日期
    private TypeEnum type; // 类型（早餐/午餐/晚餐/加餐/运动）
    private String name; // 食物或运动的名称
    private int perUnitCalorie; // 食物每100克的卡路里/运动每30分钟的卡路里
    private String unit;
    private double amount; // 吃了多少克/运动了多少分钟
    private int img; // 食物/运动的图片

    public FoodOrExercise(String date, TypeEnum type, String name, int perUnitCalorie, String unit, double amount, int img) {
        this.date = date;
        this.type = type;
        this.name = name;
        this.perUnitCalorie = perUnitCalorie;
        this.unit = unit;
        this.amount = amount;
        this.img = img;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public TypeEnum getType() {
        return type;
    }

    public void setType(TypeEnum type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPerUnitCalorie() {
        return perUnitCalorie;
    }

    public void setPerUnitCalorie(int perUnitCalorie) {
        this.perUnitCalorie = perUnitCalorie;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getImg() {
        return img;
    }

    public void setImg(int img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "FoodOrExercise{" +
                "date='" + date + '\'' +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", perUnitCalorie=" + perUnitCalorie +
                ", unit='" + unit + '\'' +
                ", amount=" + amount +
                '}';
    }
}
